package com.example.zuoye.service;

import com.example.zuoye.entity.Liked;
import org.springframework.stereotype.Service;

import java.util.List;


public interface GoodLikeService {
    /**
     * 关注
     * @param liked
     * @return
     */
    boolean addLikedService(Liked liked);

    /**
     * 查询单个用户的所有点关注信息
     * @param userId
     * @return
     */
    List<Liked> getListLikedService(String userId);

    /**
     * 修改关注
     * @param liked
     * @return
     */
    boolean updateLikedService(Liked liked);

    /**
     * 检测用户是否关注
     * @param liked
     * @return
     */
    Liked checkedLikeService(Liked liked);

    /**
     * 更新关注表
     * @param liked
     * @return
     */
    boolean updateGoodLike(Liked liked);
}
